import Vue from 'vue'
import Router from 'vue-router'

// import routes
import homeRoutes from './home/routes'
import joinRoutes from './join/routes'
import shopRoutes from './jifenshop/routes'
import aboutRoutes from './about/routes'
import productRoutes from './product/routes'
import newsRoutes from './news/routes'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    { ...homeRoutes },
    { ...aboutRoutes },
    { ...productRoutes },
    { ...newsRoutes },
    { ...joinRoutes },
    { ...shopRoutes }
  ]
})
